<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .bt{
        font-size: 50px;
        border-radius: 16px;
        }
        body{
        background-color:lightblue;
        }
        h1{
         color:white;
         text-align:center;
        }
        p {
         font-family: verdana;
         font-size: 30px;
        }
    </style>
</head>
<body>
    <h1>仓库移动监测仪</h1>
    <button id="btn" class="bt">按钮</button>
    <center>
    <p> 温度：<span id = "test1">00</span> 湿度</center></p>
    <button  id = "in" onclick= "button('26')" class="bt" > on
    </button>
    <button id = "out" onclick= 'button("\"abcdef\"")' class = "bt">on
    </button>

<!-- 在这里写JavaScript代码，因为JavaScript是由上到下执行的 -->
<script>
    var btn = document.getElementById("btn");
    btn.onclick = function update() {
        // 创建定时器
        var timer = setInterval(function () {
            console.log("Hello");
        }, 1000);
 
        // 清除定时器
        // clearInterval(timer);
    };

    setInterval(function () {
            console.log("yesgo");
        }, 1000);

    function button(arg){
        document.getElementById("test1").innerHTML = arg;
        console.log(arg);
    }

</script>
</body>
</html>

